package d

import java.sql.DriverManager.println


/**
 *
 *weihaizhou
 *2018/11/2  10:39 PM
 */

var age: Int = 18
var name: String = "weihaizhou"

var name2: String? = null

fun main(args: Array<String>) {
    name2 = name
    printLen(name2!!)
//    printClass(MainActivity::class.java)

}

fun printLen(str: String): String {

    println("这个字符串是$str 的名字")
    return str

}

fun printClass(clazz: Class<MainActivity>) {
    printLen(clazz.simpleName)
}


//fun printClass(clazz: KClass<Test2>){
//
//}